package cn.lanqiao.bigDate.api.config;

import cn.lanqiao.bigDate.entity.data.DataBookOrder;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


import org.apache.log4j.Logger;

@Component
public class ScheduleConfig {
    private static final Logger logger = Logger.getLogger(ScheduleConfig.class);

    @Scheduled(cron="0 */1 * * * ?")
    public void executeFileDownLoadTask() {
        // 间隔1分钟,执行任务
        Thread current = Thread.currentThread();
        logger.info("ScheduledTest.executeFileDownLoadTask 定时任务1:"+current.getId()+ ",name:"+current.getName());
        QueryWrapper<DataBookOrder> wrapperDataBookOrder = new QueryWrapper<>();
        wrapperDataBookOrder.select("");



    }
}

